package com.ssf.framework.freemarker;

import org.springframework.web.servlet.view.freemarker.FreeMarkerView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * Created by liolay on 15-7-28.
 */
public class FreeMarkerViewExtension extends FreeMarkerView {

    @Override
    protected void doRender(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
        model.put("ctx", request.getContextPath());
        super.doRender(model, request, response);
    }
}